package enums;

import entity.StatusCode;
import lombok.Getter;

@Getter
public enum ResultEnum {

    ADD_SUCCESS(true, StatusCode.OK, "新增成功"),
    LOGIN_SUCCESS(true, StatusCode.OK, "登录成功"),
    DELETE_SUCCESS(true, StatusCode.OK, "删除成功"),
    REP_ERROR(false, StatusCode.REPERROR, "已经关注此人"),
    LOGIN_ERROR(false, StatusCode.LOGINERROR, "登录信息错误"),
    ACCESS_ERROR(false, StatusCode.ACCESSERROR, "无权访问");

    private boolean flag;
    private Integer code;
    private String message;

    ResultEnum(boolean flag, Integer code, String message) {
        this.flag = flag;
        this.code = code;
        this.message = message;
    }

}
